home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / Eh.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  734 b   |  38 lines

  1. /* Copyright (C) 1986-2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __EXCEPT_H
  7. #define __EXCEPT_H 1
  8.  
  9. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  10. #ifndef _CRTAPI1
  11. #define _CRTAPI1 __cdecl
  12. #endif
  13.  
  14. /* Define _CRTAPI2 (for compatibility with the NT SDK) */
  15. #ifndef _CRTAPI2
  16. #define _CRTAPI2 __cdecl
  17. #endif
  18.  
  19. /* Define CRTIMP */
  20. #ifndef _CRTIMP
  21. #if defined(_WIN32) && defined(_DLL)
  22. #define _CRTIMP  __declspec(dllimport)
  23. #else
  24. #define _CRTIMP
  25. #endif
  26. #endif
  27.  
  28. typedef void (__cdecl *__eh_fp)();
  29.  
  30. __eh_fp __cdecl set_terminate(__eh_fp);
  31. __eh_fp __cdecl set_unexpected(__eh_fp);
  32.  
  33. void __cdecl terminate();
  34. void __cdecl unexpected();
  35.  
  36. #endif
  37.  
  38.